<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of koneksi
 *
 * @author BAGUS
 */
class Koneksi {

    public $url;
    public $username;
    public $password;
    public $database;

    public function getUrl() {
        $this->url = '202.52.146.77';
        return $this->url;
    }

    public function getUsername() {
        $this->username = 'semuabe1_user';
        return $this->username;
    }

    public function getPassword() {
        $this->password = 'Aebohl8w';
        return $this->password;
    }

    public function getDatabase() {
        $this->database = 'semuabe1_data';
        return $this->database;
    }

//put your code here
    public function koneksiDB() {
        mysql_connect($this->getUrl(), $this->getUsername(), $this->getPassword());
        mysql_select_db($this->getDatabase());
    }

}
